<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="signupForm">

                    <input type="hidden" name="userId" id="user"
                           th:value="${user.id}">

                    <div class="form-group">
                        <label class="col-sm-3 control-label"></label>
                        <div class="col-sm-8">
                            <label th:each="courses:${coursesAll}" class="checkbox-inline">
                                <!--                                <input name="courses" type="checkbox" th:value="${courses.id}"-->
                                <!--                                       th:text="${courses.name}" th:checked="${courses.name}">-->
                                <input name="coursesId" type="checkbox" th:value="${courses.id}"
                                       th:text="${courses.name}" th:checked="${courses.isShow}">
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <button type="submit" class="btn btn-primary" onclick="update()">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/webJs/sys/user/accessConfiguration.js">
</script>
</body>
</html>
